<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        width: 100px;
        height: 100px;
        margin: 0 auto;
      }
    </style>
  </head>
  <body>
    <script>
      let r = Math.ceil(Math.random() * 255)
      let g = Math.ceil(Math.random() * 255)
      let b = Math.ceil(Math.random() * 255)
      let color = `${r},${g},${b}`
      document.write(`<div  style="background-color:rgb(${color});"></div>`)
    </script>
  </body>
</html>
